package com.ruoyi.project.yuwen.audiototal.domain;

import com.ruoyi.project.yuwen.kkuserInfo.domain.YuwenKkuserInfo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 朗诵统计对象 audio_total
 *
 * @author shixiangwen
 * @date 2021-04-26
 */
public class AudioTotal extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long kkuid;

    /**
     * 朗诵总数
     */
    @Excel(name = "朗诵总数")
    private Long totalAudio;

    /**
     * 播放量
     */
    @Excel(name = "播放量")
    private Long totalPlay;

    /**
     * 点赞量
     */
    @Excel(name = "点赞量")
    private Long totalPraise;

    private YuwenKkuserInfo user;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setKkuid(Long kkuid) {
        this.kkuid = kkuid;
    }

    public Long getKkuid() {
        return kkuid;
    }

    public void setTotalAudio(Long totalAudio) {
        this.totalAudio = totalAudio;
    }

    public Long getTotalAudio() {
        return totalAudio;
    }

    public void setTotalPlay(Long totalPlay) {
        this.totalPlay = totalPlay;
    }

    public Long getTotalPlay() {
        return totalPlay;
    }

    public void setTotalPraise(Long totalPraise) {
        this.totalPraise = totalPraise;
    }

    public Long getTotalPraise() {
        return totalPraise;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public YuwenKkuserInfo getUser() {
        return user;
    }

    public void setUser(YuwenKkuserInfo user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("kkuid", getKkuid())
                .append("totalAudio", getTotalAudio())
                .append("totalPlay", getTotalPlay())
                .append("totalPraise", getTotalPraise())
                .append("createdTime", getCreatedTime())
                .toString();
    }
}
